package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Like generated by hbm2java
 */
@Entity
@Table(name = "like", catalog = "good_fresh")
public class Like implements java.io.Serializable {

	private Integer likeId;
	private GoodsInfo goodsInfo;
	private Date createTime;
	private Date updateTime;
	private String holdOne;
	private String holdTwo;

	public Like() {
	}

	public Like(GoodsInfo goodsInfo, Date createTime, Date updateTime, String holdOne, String holdTwo) {
		this.goodsInfo = goodsInfo;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.holdOne = holdOne;
		this.holdTwo = holdTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "LIKE_ID", unique = true, nullable = false)
	public Integer getLikeId() {
		return this.likeId;
	}

	public void setLikeId(Integer likeId) {
		this.likeId = likeId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GOODS_INFO_ID")
	public GoodsInfo getGoodsInfo() {
		return this.goodsInfo;
	}

	public void setGoodsInfo(GoodsInfo goodsInfo) {
		this.goodsInfo = goodsInfo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "HOLD_ONE", length = 25)
	public String getHoldOne() {
		return this.holdOne;
	}

	public void setHoldOne(String holdOne) {
		this.holdOne = holdOne;
	}

	@Column(name = "HOLD_TWO", length = 25)
	public String getHoldTwo() {
		return this.holdTwo;
	}

	public void setHoldTwo(String holdTwo) {
		this.holdTwo = holdTwo;
	}

}
